package com.ksyun.campus.metaserver.config;

import org.apache.zookeeper.ZooKeeper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.IOException;

/**
 * ZooKeeper配置类
 */
@Configuration
public class ZooKeeperConfiguration {
    @Bean
    public ZooKeeper zooKeeper() throws IOException {
        return new ZooKeeper("localhost:2181", 30000, event -> {
        });
    }
}
